<?
namespace app\admin\validate;

use think\Validate;

class Menu extends Validate
{
    protected $rule =   [
        'name'  => 'require',
		'id'	=>'require',
    ];
    
    protected $message  =   [
        'name.require' => '名称必须',
		'id.require'	=>	'ID无效!',
		
    ];
    protected $scene = [
		'add'  =>  ['name'],
		'edit'  =>  ['id','name'],
		'del'  =>  ['id'],
		'cue'	=> ['id'],
    ];
}